import request from '@/utils/request'
// 表数据请求
export const getPermList = () => {
  return request({
    url: '/sys/permission'
  })
}
// 添加
export const addPerm = (data) => {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}
// 数据回显
export const getPermData = (id) => {
  return request({
    url: `/sys/permission/${id}`
  })
}
// 修改更新
export const updatePermDetail = (data) => {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put',
    data
  })
}
// 删除
export const del = (id
) => {
  return request({
    url: `/sys/permission/${id}`,
    method: 'delete'
  })
}
